import { Column, Entity } from 'typeorm'
import { AwardRuleTypeEnum } from 'src/types/awardRule'
import { App } from 'src/app.entity'
@Entity()
export class AwardRule extends App {
  @Column({ type: 'varchar', length: 10 })
  name: string
  @Column('int')
  score: number
  @Column({
    type: 'enum',
    enum: AwardRuleTypeEnum,
    default: AwardRuleTypeEnum['奖']
  })
  type: number
  @Column({ type: 'varchar', length: 50, nullable: true })
  desc?: string
}
